package com.example.springbootmybatis.domain;

public class Wife {
    private Long id;
    private String wifeName;

    public Long getId() {
        return id;
    }



    public void setId(Long id) {
        this.id = id;
    }

    public String getWifeName() {
        return wifeName;
    }

    public void setWifeName(String wifeName) {
        this.wifeName = wifeName;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }


    public Husband getHusband() {
        return husband;
    }

    public void setHusband(Husband husband) {
        this.husband = husband;
    }

    private Integer age;
    private Long husbandId;
    private  Husband husband;
    @Override
    public String toString() {
        return "Wife{" +
                "id=" + id +
                ", wifeName='" + wifeName + '\'' +
                ", age=" + age +
                ", husBandId=" + husbandId +
                '}';
    }

    public void setHusbandId(Long husbandId) {
        this.husbandId = husbandId;
    }
}
